package vn.com.mybudget.da;
import vn.com.mybudget.common.CommonUtil;
import vn.com.mybudget.da.inf.IDAFactory;

public class DAFactoryInstance {
    private static IDAFactory _IDAFactory = null;
    public static IDAFactory GetInstance(){
    	if (_IDAFactory == null){
    		
    		_IDAFactory = (IDAFactory) CommonUtil.CreateObjectInstance("vn.com.mybudget.da."+vn.com.mybudget.common.Setting.GetDAOType()+".DAFactory");
    	}
    	return _IDAFactory;
    }
    
}
